/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package services;

import com.application.AutoIncrement;
import org.apache.thrift.TException;

/**
 *
 * @author node1
 */
public class AutoIncrementServiceImpl implements AutoIncrementService.Iface{
    private AutoIncrement auto = AutoIncrement.getInstance();
    
    @Override
    public long getAutoIncrement(String key) throws TException {
        return auto.getAutoIncrement(key);
    }

    @Override
    public long setAutoIncrement(String key, long value) throws TException {
        return auto.setAutoIncrement(key, value);
    }

    @Override
    public long getNumberIncrement(String key) throws TException {
        return auto.getNumberIncrement(key);
    }
    
}
